package com.ruoyi.project.system.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 产品价格对象 sys_product_user
 *
 * @author ruoyi
 * @date 2024-06-20
 */
public class SysProductUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 定价id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 产品id */
    @Excel(name = "产品id")
    private Long productId;

    /** 产品定价 */
    @Excel(name = "产品定价")
    private BigDecimal pricing;

    /** 底价 */
    @Excel(name = "底价")
    private BigDecimal lowPrice;

    /** 产品定价状态（0正常；1停用） */
    @Excel(name = "产品定价状态", readConverterExp = "0=正常；1停用")
    private String status;

    /** 删除标志（0代表存在；2代表删除） */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setPricing(BigDecimal pricing)
    {
        this.pricing = pricing;
    }

    public BigDecimal getPricing()
    {
        return pricing;
    }
    public void setLowPrice(BigDecimal lowPrice)
    {
        this.lowPrice = lowPrice;
    }

    public BigDecimal getLowPrice()
    {
        return lowPrice;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("productId", getProductId())
            .append("pricing", getPricing())
            .append("lowPrice", getLowPrice())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
